//
//  HMPhoneNumChangeViewModel.m
//  获得
//
//  Created by mac on 17/1/8.
//  Copyright © 2017年 mac.gu. All rights reserved.
//

#import "HMPhoneNumChangeViewModel.h"
#import "HMNetWorkTool.h"
@implementation HMPhoneNumChangeViewModel

+ (void)postPhoneNumChage:(NSString *)oldPassword andNewPassword:(NSString *)newPassword andToken:(NSString *)token Finished:(void (^)(id))finishedBlock Failed:(void (^)(NSError *))failedBlock{
    
    [[HMNetWorkTool sharedTool]requstChangePhoneNum:newPassword andOldPassword:oldPassword andToken:token Finished:^(id responseObject) {
        
        finishedBlock(responseObject);
    } Failed:^(NSError *error) {
        failedBlock(error);
    }];
    
    
}

@end
